SugarArgumentNullException

Overview

Represents exception that is thrown when one of the arguments provided to a method is null.

Location

Class Methods


RaiseIfNil

Raises exception if specified parameter is nil.

 

class method RaiseIfNil(Value: Object; Name: String)

 

static void RaiseIfNil(Object Value, String Name)

 

static func RaiseIfNil(_ Value: Object, _ Name: String)

 

static void RaiseIfNil(Object Value, String Name)

 

Shared Sub RaiseIfNil(Value As Object, Name As String)

Parameters:

  • Value: Parameter to check.
  • Name: Name of the parameter.

Instance Methods


constructor    (declared in SugarArgumentException)

Creates a new instance of the class.

 

constructor

 

SugarArgumentNullException()

 

init()

 

SugarArgumentNullException()

 

Sub New()

constructor (String)

 

constructor(aMessage: String)

 

SugarArgumentNullException(String aMessage)

 

init(_ aMessage: String)

 

SugarArgumentNullException(String aMessage)

 

Sub New(aMessage As String)

Parameters:

  • aMessage:

constructor (String, array of Object)    (declared in SugarArgumentException)

 

constructor(aFormat: String; params aParams: array of Object)

 

SugarArgumentNullException(String aFormat, params Object[] aParams)

 

init(_ aFormat: String, _ aParams: Object...)

 

SugarArgumentNullException(String aFormat, Object[]... aParams)

 

Sub New(aFormat As String, ParamArray aParams As Object())

Parameters:

  • aFormat:
  • aParams: