Skip to content
Snippets Groups Projects
errors.go 630 B
Newer Older
  • Learn to ignore specific revisions
  • package thumbnailer
    
    type thumbnailerError struct {
    	Err string
    }
    
    // Error implements error.
    func (e *thumbnailerError) Error() string {
    	return e.Err
    }
    
    // NoCachedCopy means there is no cached copy for the specified key available.
    var NoCachedCopy error = &thumbnailerError{"no cached copy of the thumbnail requested is available"}
    
    // InputTooLarge means that the pixel size of the input image is too big to be thumbnailed.
    var InputTooLarge error = &thumbnailerError{"the input size in pixels is too large"}
    
    
    // NoKeySpecified means that no key was specified.
    var NoKeySpecified error = &thumbnailerError{"no key specified"}