Package Torello.Browser
Class AssignmentNameException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- java.lang.IllegalArgumentException
-
- Torello.Browser.AssignmentNameException
-
- All Implemented Interfaces:
java.io.Serializable
public class AssignmentNameException extends java.lang.IllegalArgumentException
This exception throws if, when building a CDP instance with the 'advanced'TypeBuilderclass, but a unknown field name has been passed by the user. The classTypeBuildermay be used in lieu of a class' constructor for a CDP data class in situation where the constructor would be completely unwieldy and inconvenient given the number of fields in the class.👉 This class offers a number of "convenience fields" to provide more comprehensive error reporting when something has failed.- See Also:
TypeBuilder, Serialized Form
Hi-Lited Source-Code:- View Here: Torello/Browser/AssignmentNameException.java
- Open New Browser-Tab: Torello/Browser/AssignmentNameException.java
File Size: 2,656 Bytes Line Count: 74 '\n' Characters Found
-
-
Field Summary
Serializable ID Modifier and Type Field static longserialVersionUID'final'Exception Convenience FieldsModifier and Type Field AbstractDescriptordescriptorStringname
-
Constructor Summary
Constructors Constructor AssignmentNameException(String message, String name, AbstractDescriptor descriptor)AssignmentNameException(String name, AbstractDescriptor descriptor)
-
-
-
Field Detail
-
serialVersionUID
public static final long serialVersionUID
This fulfils the SerialVersion UID requirement for all classes that implement Java'sinterface java.io.Serializable. Using theSerializableImplementation offered by java is very easy, and can make saving program state when debugging a lot easier. It can also be used in place of more complicated systems like "hibernate" to store data as well.
Note that Java'sjava.lang.Exceptionandjava.lang.Errorclasses implement theSerializable interface, and a warning-free build expects this field be defined here.- See Also:
- Constant Field Values
- Code:
- Exact Field Declaration Expression:
public static final long serialVersionUID = 1;
-
name
public final java.lang.String name
The unknown assignment name that was passed to one of the builder'saccept(...)methods.👉 For aTypeBuilder, this name usually identifies a field in the CDP type being built. For aCommandBuilder, it usually identifies one of the command's input parameters.- Code:
- Exact Field Declaration Expression:
public final String name;
-
descriptor
public final AbstractDescriptor descriptor
The descriptor used by the builder when this exception was thrown.👉 This field is provided as a programmer convenience, to make debugging and error investigation easier.- Code:
- Exact Field Declaration Expression:
public final AbstractDescriptor descriptor;
-
-
Constructor Detail
-
AssignmentNameException
public AssignmentNameException(java.lang.String name, AbstractDescriptor descriptor)
Constructs aAssignmentNameExceptionwith the default error message.- Parameters:
name- the unknown assignment name passed to the builder.descriptor- the descriptor used by the builder.
-
AssignmentNameException
public AssignmentNameException(java.lang.String message, java.lang.String name, AbstractDescriptor descriptor)
Constructs aAssignmentNameExceptionwith the specified detail message.- Parameters:
message- the detail message.name- the unknown assignment name passed to the builder.descriptor- the descriptor used by the builder.
-
-