Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for custom (0.13 sec)

  1. cmd/api-errors_test.go

    	{err: crypto.ErrCustomerKeyMD5Mismatch, errCode: ErrSSECustomerKeyMD5Mismatch},
    	{err: errObjectTampered, errCode: ErrObjectTampered},
    
    	{err: nil, errCode: ErrNone},
    	{err: errors.New("Custom error"), errCode: ErrInternalError}, // Case where err type is unknown.
    }
    
    func TestAPIErrCode(t *testing.T) {
    	ctx := context.Background()
    	for i, testCase := range toAPIErrorTests {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Sep 25 15:13:08 GMT 2023
    - 3.4K bytes
    - Viewed (0)
Back to top