Files
mediadevices/pkg/io/error.go
2020-02-06 22:44:29 -08:00

14 lines
373 B
Go

package io
import "fmt"
// InsufficientBufferError tells the caller that the buffer provided is not sufficient/big
// enough to hold the whole data/sample.
type InsufficientBufferError struct {
RequiredSize int
}
func (e *InsufficientBufferError) Error() string {
return fmt.Sprintf("provided buffer doesn't meet the size requirement of length, %d", e.RequiredSize)
}