Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 4,897 for perror (0.1 sec)

  1. src/internal/types/testdata/check/errors.go

    	const c3 = "foo"
    	0 // ERROR "0 (untyped int constant) is not used"
    	0.5 // ERROR "0.5 (untyped float constant) is not used"
    	"foo" // ERROR `"foo" (untyped string constant) is not used`
    	c1 // ERROR "c1 (untyped int constant 991) is not used"
    	c2 // ERROR "c2 (constant 0.5 of type float32) is not used"
    	c1 /* ERROR "c1 + c2 (constant 991.5 of type float32) is not used" */ + c2
    	c3 // ERROR `c3 (untyped string constant "foo") is not used`
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 10 12:59:20 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  2. platforms/documentation/docs/src/snippets/native-binaries/cunit/groovy/libs/cunit/2.1-2/include/CUnit/CUError.h

     *
     *  05-Sep-2004   Added internal test interface. (JDS)
     */
    
    /** @file
     *  Error handling functions (user interface).
     *  CUnit uses a simple (and conventional) error handling strategy.
     *  Functions that can generate errors set (and usually return) an
     *  error code to indicate the run status.  The error code can be
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 7.6K bytes
    - Viewed (0)
  3. src/go/scanner/errors.go

    	"fmt"
    	"go/token"
    	"io"
    	"sort"
    )
    
    // In an [ErrorList], an error is represented by an *Error.
    // The position Pos, if valid, points to the beginning of
    // the offending token, and the error condition is described
    // by Msg.
    type Error struct {
    	Pos token.Position
    	Msg string
    }
    
    // Error implements the error interface.
    func (e Error) Error() string {
    	if e.Pos.Filename != "" || e.Pos.IsValid() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 3K bytes
    - Viewed (0)
  4. src/cmd/go/internal/mvs/errors.go

    package mvs
    
    import (
    	"fmt"
    	"strings"
    
    	"golang.org/x/mod/module"
    )
    
    // BuildListError decorates an error that occurred gathering requirements
    // while constructing a build list. BuildListError prints the chain
    // of requirements to the module where the error occurred.
    type BuildListError struct {
    	Err   error
    	stack []buildListErrorElem
    }
    
    type buildListErrorElem struct {
    	m module.Version
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 01 17:22:28 UTC 2023
    - 3K bytes
    - Viewed (0)
  5. src/cmd/go/internal/script/errors.go

    	Line int
    	Op   string
    	Args []string
    	Err  error
    }
    
    func cmdError(cmd *command, err error) *CommandError {
    	return &CommandError{
    		File: cmd.file,
    		Line: cmd.line,
    		Op:   cmd.name,
    		Args: cmd.args,
    		Err:  err,
    	}
    }
    
    func (e *CommandError) Error() string {
    	if len(e.Args) == 0 {
    		return fmt.Sprintf("%s:%d: %s: %v", e.File, e.Line, e.Op, e.Err)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 24 21:18:10 UTC 2022
    - 1.6K bytes
    - Viewed (0)
  6. internal/config/lambda/event/errors.go

    import (
    	"fmt"
    )
    
    // ErrUnknownRegion - unknown region error.
    type ErrUnknownRegion struct {
    	Region string
    }
    
    func (err ErrUnknownRegion) Error() string {
    	return fmt.Sprintf("unknown region '%v'", err.Region)
    }
    
    // ErrARNNotFound - ARN not found error.
    type ErrARNNotFound struct {
    	ARN ARN
    }
    
    func (err ErrARNNotFound) Error() string {
    	return fmt.Sprintf("ARN '%v' not found", err.ARN)
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Mar 07 16:12:41 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  7. src/cmd/asm/internal/asm/testdata/duperror.s

    // license that can be found in the LICENSE file.
    
    TEXT foo(SB), 0, $0
    	RET
    TEXT foo(SB), 0, $0 // ERROR "symbol foo redeclared"
    	RET
    
    GLOBL bar(SB), 0, $8
    GLOBL bar(SB), 0, $8 // ERROR "symbol bar redeclared"
    
    DATA bar+0(SB)/8, $0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 05 23:21:07 UTC 2022
    - 404 bytes
    - Viewed (0)
  8. src/cmd/link/internal/ld/errors.go

    					haveABI = abi
    				}
    			}
    		}
    
    		// Give a special error message for main symbol (see #24809).
    		if name == "main.main" {
    			reporter.Errorf(s, "function main is undeclared in the main package")
    		} else if haveABI != ^obj.ABI(0) {
    			reporter.Errorf(s, "relocation target %s not defined for %s (but is defined for %s)", name, reqABI, haveABI)
    		} else {
    			reporter.Errorf(s, "relocation target %s not defined", name)
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 02 14:38:08 UTC 2022
    - 1.9K bytes
    - Viewed (0)
  9. src/os/error.go

    	if err == nil {
    		return nil
    	}
    	return &SyscallError{syscall, err}
    }
    
    // IsExist returns a boolean indicating whether the error is known to report
    // that a file or directory already exists. It is satisfied by [ErrExist] as
    // well as some syscall errors.
    //
    // This function predates [errors.Is]. It only supports errors returned by
    // the os package. New code should use errors.Is(err, fs.ErrExist).
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:33:12 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  10. internal/crypto/error.go

    func Errorf(format string, a ...interface{}) error {
    	e := fmt.Errorf(format, a...)
    	ee := Error{}
    	ee.msg = e.Error()
    	ee.cause = errors.Unwrap(e)
    	return ee
    }
    
    // Unwrap the internal error.
    func (e Error) Unwrap() error { return e.cause }
    
    // Error 'error' compatible method.
    func (e Error) Error() string {
    	if e.msg == "" {
    		return "crypto: cause <nil>"
    	}
    	return e.msg
    }
    
    var (
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Mar 28 17:44:56 UTC 2024
    - 4.4K bytes
    - Viewed (0)
Back to top