C# Class Bike.Interpreter.Builtin.ErrorFactory

Mostra file Open project: buunguyen/bike

Public Methods

Method Description
CreateAlreadyDefinedError ( string varName ) : BikeObject
CreateClrError ( Exception cause ) : BikeObject
CreateClrError ( string message ) : BikeObject
CreateError ( string message ) : BikeObject
CreateInvalidProgramError ( string message ) : BikeObject
CreateLoadError ( string path ) : BikeObject
CreateNotDefinedError ( string varName ) : BikeObject
CreateNullError ( string varName ) : BikeObject
CreateTypeError ( string message ) : BikeObject
IsAlreadyDefinedError ( BikeObject bo ) : bool
IsClrError ( BikeObject bo ) : bool
IsErrorOfType ( BikeObject bo, string errorType ) : bool
IsNotDefinedError ( BikeObject bo ) : bool
IsTypeError ( BikeObject bo ) : bool

Private Methods

Method Description
BuildStackTrace ( ) : BikeString
CreateErrorFromType ( string errorType ) : BikeObject
ResolvePrototype ( string objName ) : BikeObject

Method Details

CreateAlreadyDefinedError() public static method

public static CreateAlreadyDefinedError ( string varName ) : BikeObject
varName string
return BikeObject

CreateClrError() public static method

public static CreateClrError ( Exception cause ) : BikeObject
cause System.Exception
return BikeObject

CreateClrError() public static method

public static CreateClrError ( string message ) : BikeObject
message string
return BikeObject

CreateError() public static method

public static CreateError ( string message ) : BikeObject
message string
return BikeObject

CreateInvalidProgramError() public static method

public static CreateInvalidProgramError ( string message ) : BikeObject
message string
return BikeObject

CreateLoadError() public static method

public static CreateLoadError ( string path ) : BikeObject
path string
return BikeObject

CreateNotDefinedError() public static method

public static CreateNotDefinedError ( string varName ) : BikeObject
varName string
return BikeObject

CreateNullError() public static method

public static CreateNullError ( string varName ) : BikeObject
varName string
return BikeObject

CreateTypeError() public static method

public static CreateTypeError ( string message ) : BikeObject
message string
return BikeObject

IsAlreadyDefinedError() public static method

public static IsAlreadyDefinedError ( BikeObject bo ) : bool
bo BikeObject
return bool

IsClrError() public static method

public static IsClrError ( BikeObject bo ) : bool
bo BikeObject
return bool

IsErrorOfType() public static method

public static IsErrorOfType ( BikeObject bo, string errorType ) : bool
bo BikeObject
errorType string
return bool

IsNotDefinedError() public static method

public static IsNotDefinedError ( BikeObject bo ) : bool
bo BikeObject
return bool

IsTypeError() public static method

public static IsTypeError ( BikeObject bo ) : bool
bo BikeObject
return bool