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)

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()

constructor (String)

 

constructor(aMessage: String)

 

SugarArgumentNullException(String aMessage)

 

init(_ aMessage: String)

 

SugarArgumentNullException(String aMessage)

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)

Parameters:

  • aFormat:
  • aParams: