51Degrees Pipeline for Java

fiftyone.pipeline.engines.exceptions.PropertyMissingException Class Reference

Detailed Description

A property missing exception is thrown by the missing property service if an attempt is made to access a property that does not exist in the FlowData.

See also
Specification

Inheritance diagram for fiftyone.pipeline.engines.exceptions.PropertyMissingException:

[legend]

Collaboration diagram for fiftyone.pipeline.engines.exceptions.PropertyMissingException:

[legend]

Public Member Functions

 PropertyMissingException (MissingPropertyReason reason, String propertyName, String message)
 Constructs a new exception containing the property name, error, and reason the property was not found.
 PropertyMissingException (MissingPropertyReason reason, String propertyName, String message, Throwable cause)
 Constructs a new exception containing the property name, error, and reason the property was not found.
String getPropertyName ()
 Get the name of the property that was missing.
MissingPropertyReason getReason ()
 Get missing property reason.
void setReason (MissingPropertyReason reason)
 Set missing property reason.

Constructor & Destructor Documentation

◆ PropertyMissingException() [1/2]

fiftyone.pipeline.engines.exceptions.PropertyMissingException.PropertyMissingException ( MissingPropertyReason reason,
String propertyName,
String message )

Constructs a new exception containing the property name, error, and reason the property was not found.

Parameters
reasonthe reason for the missing property
propertyNameof the missing property
messagewhy the property was not found

◆ PropertyMissingException() [2/2]

fiftyone.pipeline.engines.exceptions.PropertyMissingException.PropertyMissingException ( MissingPropertyReason reason,
String propertyName,
String message,
Throwable cause )

Constructs a new exception containing the property name, error, and reason the property was not found.

Parameters
reasonthe reason for the missing property
propertyNameof the missing property
messagewhy the property was not found
causeof the exception

Member Function Documentation

◆ getPropertyName()

String fiftyone.pipeline.engines.exceptions.PropertyMissingException.getPropertyName ( )

Get the name of the property that was missing.

Returns
property name

◆ getReason()

MissingPropertyReason fiftyone.pipeline.engines.exceptions.PropertyMissingException.getReason ( )

Get missing property reason.

Returns
reason for the missing property

◆ setReason()

void fiftyone.pipeline.engines.exceptions.PropertyMissingException.setReason ( MissingPropertyReason reason)

Set missing property reason.

Parameters
reasonthe reason for the missing property