Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 2,811 for error (0.24 sec)

  1. internal/config/errors-utils.go

    		u := Err{
    			msg:    msg,
    			action: action,
    			hint:   hint,
    		}
    		if err != nil {
    			u.detail = err.Error()
    		}
    		return u
    	}
    }
    
    // ErrorToErr inspects the passed error and transforms it
    // to the appropriate UI error.
    func ErrorToErr(err error) Err {
    	if err == nil {
    		return Err{}
    	}
    
    	// If this is already a Err, do nothing
    	if e, ok := err.(Err); ok {
    		return e
    	}
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Mon Mar 06 16:56:10 GMT 2023
    - 3.7K bytes
    - Viewed (0)
  2. internal/kms/errors.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package kms
    
    // Error encapsulates S3 API error response fields.
    type Error struct {
    	Err            error
    	APICode        string
    	HTTPStatusCode int
    }
    
    func (e Error) Error() string {
    	return e.Err.Error()
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Mar 16 18:59:42 GMT 2023
    - 972 bytes
    - Viewed (0)
  3. internal/s3select/errors.go

    	cause      error
    }
    
    func (err *s3Error) Cause() error {
    	return err.cause
    }
    
    func (err *s3Error) ErrorCode() string {
    	return err.code
    }
    
    func (err *s3Error) ErrorMessage() string {
    	return err.message
    }
    
    func (err *s3Error) HTTPStatusCode() int {
    	return err.statusCode
    }
    
    func (err *s3Error) Error() string {
    	return err.message
    }
    
    func errMalformedXML(err error) *s3Error {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Mon Mar 14 16:48:36 GMT 2022
    - 4.3K bytes
    - Viewed (0)
  4. internal/event/errors.go

    }
    
    // ErrInvalidFilterName - invalid filter name error.
    type ErrInvalidFilterName struct {
    	FilterName string
    }
    
    func (err ErrInvalidFilterName) Error() string {
    	return fmt.Sprintf("invalid filter name '%v'", err.FilterName)
    }
    
    // ErrFilterNamePrefix - more than one prefix usage error.
    type ErrFilterNamePrefix struct{}
    
    func (err ErrFilterNamePrefix) Error() string {
    	return "more than one prefix in filter rule"
    }
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue Jun 01 21:59:40 GMT 2021
    - 4.1K bytes
    - Viewed (0)
  5. internal/s3select/csv/errors.go

    	return err.message
    }
    
    func (err *s3Error) HTTPStatusCode() int {
    	return err.statusCode
    }
    
    func (err *s3Error) Error() string {
    	return err.message
    }
    
    func errCSVParsingError(err error) *s3Error {
    	return &s3Error{
    		code:       "CSVParsingError",
    		message:    "Encountered an error parsing the CSV file. Check the file and try again.",
    		statusCode: 400,
    		cause:      err,
    	}
    }
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue Jun 01 21:59:40 GMT 2021
    - 1.6K bytes
    - Viewed (0)
  6. docs/pt/docs/tutorial/handling-errors.md

    Os status codes na faixa dos 400 significam que houve um erro por parte do cliente.
    
    VocĂȘ se lembra de todos aqueles erros (e piadas) a respeito do "**404 Not Found**"?
    
    ## Use o `HTTPException`
    
    Para retornar ao cliente *responses* HTTP com erros, use o `HTTPException`.
    
    ### Import `HTTPException`
    
    ```Python hl_lines="1"
    {!../../../docs_src/handling_errors/tutorial001.py!}
    ```
    
    Plain Text
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 10K bytes
    - Viewed (0)
  7. internal/s3select/unused-errors.go

    		statusCode: 400,
    		cause:      err,
    	}
    }
    
    func errColumnTooLong(err error) *s3Error {
    	return &s3Error{
    		code:       "ColumnTooLong",
    		message:    "The length of a column in the result is greater than maxCharsPerColumn of 1 MB.",
    		statusCode: 400,
    		cause:      err,
    	}
    }
    
    func errOverMaxColumn(err error) *s3Error {
    	return &s3Error{
    		code:       "OverMaxColumn",
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue Feb 20 08:16:35 GMT 2024
    - 17.5K bytes
    - Viewed (0)
  8. internal/s3select/sql/errors.go

    	return &s3Error{
    		code:       "InvalidQuery",
    		message:    err.Error(),
    		statusCode: 400,
    		cause:      err,
    	}
    }
    
    func errBadTableName(err error) *s3Error {
    	return &s3Error{
    		code:       "BadTableName",
    		message:    fmt.Sprintf("The table name is not supported: %v", err),
    		statusCode: 400,
    		cause:      err,
    	}
    }
    
    func errDataSource(err error) *s3Error {
    	return &s3Error{
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue Jun 01 21:59:40 GMT 2021
    - 2.6K bytes
    - Viewed (0)
  9. cmd/typed-errors.go

    // error returned when temporary account is not found
    var errNoSuchTempAccount = errors.New("Specified temporary account does not exist")
    
    // error returned in IAM subsystem when an account doesn't exist.
    var errNoSuchAccount = errors.New("Specified account does not exist")
    
    // error returned in IAM subsystem when groups doesn't exist.
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 5.3K bytes
    - Viewed (0)
  10. internal/hash/errors.go

    type SizeTooLarge struct {
    	Want int64
    	Got  int64
    }
    
    func (e SizeTooLarge) Error() string {
    	return fmt.Sprintf("Size large: got %d, want %d", e.Got, e.Want)
    }
    
    // SizeMismatch error size mismatch
    type SizeMismatch struct {
    	Want int64
    	Got  int64
    }
    
    func (e SizeMismatch) Error() string {
    	return fmt.Sprintf("Size mismatch: got %d, want %d", e.Got, e.Want)
    }
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Mon May 15 21:08:54 GMT 2023
    - 2.4K bytes
    - Viewed (0)
Back to top