|
SAP CC 1.0
API 4.2 (Core) |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
com.highdeal.hci.OperationFailureException
com.highdeal.calendar.hci.InvalidHolidayException
public class InvalidHolidayException
Exception thrown when a PublicHolidaysModel
or a HolidayModel is invalid.
| XML Schema Fragment |
<xs:element name="invalidHolidayFault">
<xs:complexType>
<xs:attribute name="error" type="InvalidHolidayFaultErrorType"/>
<xs:attribute name="message" type="xs:string"/>
</xs:complexType>
</xs:element> |
<xs:simpleType name="InvalidHolidayFaultErrorType">
<xs:restriction base="xs:string">
<xs:enumeration value="nullHolidayCode"/>
<xs:enumeration value="invalidHolidayConfiguration"/>
<xs:enumeration value="invalidHolidayGroupDescription"/>
<xs:enumeration value="duplicatedHolidayCode"/>
<xs:enumeration value="duplicatedHolidayGroup"/>
</xs:restriction>
</xs:simpleType> |
| Field Summary | |
|---|---|
static int |
DUPLICATED_HOLIDAY_CODE
Reason used when a HolidayModel code appears twice or more
in a PublicHolidaysModel object. |
static int |
DUPLICATED_HOLIDAY_GROUP
Reason used when a holiday group code appears twice or more in a PublicHolidaysModel object. |
static int |
INVALID_HOLIDAY_CONFIGURATION
Reason used when a HolidayModel is not properly configured. |
static int |
INVALID_HOLIDAY_GROUP_DESCRIPTION
Reason used when a holiday group desfription is not properly configured. |
static int |
NULL_HOLIDAY_CODE
Reason used when a HolidayModel has no code. |
| Constructor Summary | |
|---|---|
InvalidHolidayException()
Constructs an empty exception. |
|
InvalidHolidayException(int error,
java.lang.String message)
Constructs an exception with an error code and a message. |
|
| Method Summary | |
|---|---|
void |
addCharacterData(java.lang.String cData)
Adds character data to the content element. |
void |
addChild(java.lang.String tagName,
XMLMarshallable child)
Adds a child to the objects, the child represents
the marshallable object to be added into the content tree. |
int |
getError()
Returns the reason why the holiday is invalid. |
java.lang.String |
getMessage()
Returns the detailed message explaining why the holiday is invalid. |
void |
marshal(XMLOutputter output)
Gives an XML representation of this object, and of its children. |
void |
setAttributes(XMLAttributes atts)
Sets the attributes of the XML representation of the tag beeing processed. |
| Methods inherited from class com.highdeal.hci.OperationFailureException |
|---|
getOperandReference |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int NULL_HOLIDAY_CODE
HolidayModel has no code.
public static final int INVALID_HOLIDAY_CONFIGURATION
HolidayModel is not properly configured.
public static final int DUPLICATED_HOLIDAY_CODE
HolidayModel code appears twice or more
in a PublicHolidaysModel object.
public static final int DUPLICATED_HOLIDAY_GROUP
PublicHolidaysModel object.
public static final int INVALID_HOLIDAY_GROUP_DESCRIPTION
| Constructor Detail |
|---|
public InvalidHolidayException()
public InvalidHolidayException(int error,
java.lang.String message)
message - the message.error - the error.| Method Detail |
|---|
public int getError()
NULL_HOLIDAY_CODE,
INVALID_HOLIDAY_CONFIGURATION,
DUPLICATED_HOLIDAY_CODE,
DUPLICATED_HOLIDAY_GROUP,
INVALID_HOLIDAY_GROUP_DESCRIPTIONpublic java.lang.String getMessage()
getMessage in class java.lang.Throwablepublic void setAttributes(XMLAttributes atts)
XMLMarshallable
atts - the XML attributes of the current tag.public void addCharacterData(java.lang.String cData)
XMLMarshallable
cData - the character data to be added.
public void addChild(java.lang.String tagName,
XMLMarshallable child)
XMLMarshallablechild represents
the marshallable object to be added into the content tree.
tagName - the name of tag for the child.child - the child to be added.public void marshal(XMLOutputter output)
XMLMarshallable
output - the XML output to marshall the object into.
|
SAP CC 1.0
API 4.2 (Core) |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
SAP Convergent Charging 1.0 (build R4.2.1.35.0.0)
CONVERGENT CHARGING 4.2
(c) Copyright 2009 SAP AG. All rights reserved.