mirror of
https://github.com/xaionaro-go/streamctl.git
synced 2025-09-27 03:45:52 +08:00
23 lines
560 B
Go
23 lines
560 B
Go
package streamctl
|
|
|
|
import "fmt"
|
|
|
|
type ErrInvalidStreamProfileType struct {
|
|
Received StreamProfile
|
|
Expected StreamProfile
|
|
}
|
|
|
|
var _ error = ErrInvalidStreamProfileType{}
|
|
|
|
func (e ErrInvalidStreamProfileType) Error() string {
|
|
return fmt.Sprintf("received an invalid stream profile type: expected:%T, received:%T", e.Expected, e.Received)
|
|
}
|
|
|
|
type ErrNoStreamControllerForProfile struct {
|
|
StreamProfile StreamProfile
|
|
}
|
|
|
|
func (e ErrNoStreamControllerForProfile) Error() string {
|
|
return fmt.Sprintf("no StreamController found for profile %T", e.StreamProfile)
|
|
}
|