github.com/saucelabs/saucectl@v0.175.1/internal/imagerunner/errors.go (about)

     1  package imagerunner
     2  
     3  import "fmt"
     4  
     5  // AsyncEventSetupError represents an error that occurs during the setup of the
     6  // asynchronous event handling process.
     7  // This error indicates that the setup process failed and may need to be retried
     8  // or debugged.
     9  type AsyncEventSetupError struct {
    10  	Err error
    11  }
    12  
    13  func (e AsyncEventSetupError) Error() string {
    14  	return fmt.Sprintf("streaming setup failed with: %v", e.Err)
    15  }
    16  
    17  // AsyncEventFatalError represents an error that occurs during the asynchronous
    18  // event handling process.
    19  // This error is considered fatal, meaning it cannot be recovered from.
    20  type AsyncEventFatalError struct {
    21  	Err error
    22  }
    23  
    24  func (e AsyncEventFatalError) Error() string {
    25  	return e.Err.Error()
    26  }