@Test public void testHashCode() { PropertyServerException exception = new PropertyServerException(OCFErrorCode.NO_MORE_ELEMENTS.getMessageDefinition("IteratorName", "entityGUID", "entityType"), reportingClassName, reportingActionDescription, reportedCaughtException); PropertyServerException exception2 = new PropertyServerException(OCFErrorCode.NO_MORE_ELEMENTS.getMessageDefinition("IteratorName", "entityGUID", "entityType"), reportingClassName, reportingActionDescription, reportedCaughtException); assertTrue(exception.hashCode() == exception2.hashCode()); assertTrue(exception.equals(exception)); assertFalse(exception.equals(reportedCaughtException)); assertTrue(exception.equals(exception2)); assertTrue(exception.toString().equals(exception2.toString())); }
@Override public String toString() { return "PropertyServerException{" + "reportedHTTPCode=" + getReportedHTTPCode() + ", reportingClassName='" + getReportingClassName() + '\'' + ", reportingActionDescription='" + getReportingActionDescription() + '\'' + ", reportedErrorMessage='" + getReportedErrorMessage() + '\'' + ", reportedErrorMessageId='" + getReportedErrorMessageId() + '\'' + ", reportedErrorMessageParameters=" + Arrays.toString(getReportedErrorMessageParameters()) + ", reportedSystemAction='" + getReportedSystemAction() + '\'' + ", reportedUserAction='" + getReportedUserAction() + '\'' + ", reportedCaughtException=" + getReportedCaughtException() + ", reportedCaughtExceptionClassName='" + getReportedCaughtExceptionClassName() + '\'' + ", relatedProperties=" + getRelatedProperties() + '}'; }
PropertyServerException extends OCFCheckedExceptionBase { @Override public String toString() { return "PropertyServerException{" + "reportedHTTPCode=" + getReportedHTTPCode() + ", reportingClassName='" + getReportingClassName() + '\'' + ", reportingActionDescription='" + getReportingActionDescription() + '\'' + ", reportedErrorMessage='" + getReportedErrorMessage() + '\'' + ", reportedErrorMessageId='" + getReportedErrorMessageId() + '\'' + ", reportedErrorMessageParameters=" + Arrays.toString(getReportedErrorMessageParameters()) + ", reportedSystemAction='" + getReportedSystemAction() + '\'' + ", reportedUserAction='" + getReportedUserAction() + '\'' + ", reportedCaughtException=" + getReportedCaughtException() + ", reportedCaughtExceptionClassName='" + getReportedCaughtExceptionClassName() + '\'' + ", relatedProperties=" + getRelatedProperties() + '}'; } }
PropertyServerException extends OCFCheckedExceptionBase { @Override public String toString() { return "PropertyServerException{" + "reportedHTTPCode=" + getReportedHTTPCode() + ", reportingClassName='" + getReportingClassName() + '\'' + ", reportingActionDescription='" + getReportingActionDescription() + '\'' + ", reportedErrorMessage='" + getReportedErrorMessage() + '\'' + ", reportedErrorMessageId='" + getReportedErrorMessageId() + '\'' + ", reportedErrorMessageParameters=" + Arrays.toString(getReportedErrorMessageParameters()) + ", reportedSystemAction='" + getReportedSystemAction() + '\'' + ", reportedUserAction='" + getReportedUserAction() + '\'' + ", reportedCaughtException=" + getReportedCaughtException() + ", reportedCaughtExceptionClassName='" + getReportedCaughtExceptionClassName() + '\'' + ", relatedProperties=" + getRelatedProperties() + '}'; } PropertyServerException(ExceptionMessageDefinition messageDefinition,
                                   String                     className,
                                   String                     actionDescription);  PropertyServerException(ExceptionMessageDefinition messageDefinition,
                                   String                     className,
                                   String                     actionDescription,
                                   Map<String, Object>        relatedProperties);  PropertyServerException(ExceptionMessageDefinition messageDefinition,
                                   String                     className,
                                   String                     actionDescription,
                                   Throwable                  caughtError);  PropertyServerException(ExceptionMessageDefinition messageDefinition,
                                   String                     className,
                                   String                     actionDescription,
                                   Throwable                  caughtError,
                                   Map<String, Object>        relatedProperties);  PropertyServerException(int                 httpCode,
                                   String              className,
                                   String              actionDescription,
                                   String              errorMessage,
                                   String              errorMessageId,
                                   String[]            errorMessageParameters,
                                   String              systemAction,
                                   String              userAction,
                                   String              caughtErrorClassName,
                                   Map<String, Object> relatedProperties); @Deprecated  PropertyServerException(int    httpCode,
                                   String className,
                                   String actionDescription,
                                   String errorMessage,
                                   String systemAction,
                                   String userAction); @Deprecated  PropertyServerException(int                 httpCode,
                                   String              className,
                                   String              actionDescription,
                                   String              errorMessage,
                                   String              systemAction,
                                   String              userAction,
                                   Map<String, Object> relatedProperties); @Deprecated  PropertyServerException(int       httpCode,
                                   String    className,
                                   String    actionDescription,
                                   String    errorMessage,
                                   String    systemAction,
                                   String    userAction,
                                   Throwable caughtError); @Deprecated  PropertyServerException(int                 httpCode,
                                   String              className,
                                   String              actionDescription,
                                   String              errorMessage,
                                   String              systemAction,
                                   String              userAction,
                                   Throwable           caughtError,
                                   Map<String, Object> relatedProperties);  PropertyServerException(OCFCheckedExceptionBase template); }
PropertyServerException extends OCFCheckedExceptionBase { @Override public String toString() { return "PropertyServerException{" + "reportedHTTPCode=" + getReportedHTTPCode() + ", reportingClassName='" + getReportingClassName() + '\'' + ", reportingActionDescription='" + getReportingActionDescription() + '\'' + ", reportedErrorMessage='" + getReportedErrorMessage() + '\'' + ", reportedErrorMessageId='" + getReportedErrorMessageId() + '\'' + ", reportedErrorMessageParameters=" + Arrays.toString(getReportedErrorMessageParameters()) + ", reportedSystemAction='" + getReportedSystemAction() + '\'' + ", reportedUserAction='" + getReportedUserAction() + '\'' + ", reportedCaughtException=" + getReportedCaughtException() + ", reportedCaughtExceptionClassName='" + getReportedCaughtExceptionClassName() + '\'' + ", relatedProperties=" + getRelatedProperties() + '}'; } PropertyServerException(ExceptionMessageDefinition messageDefinition,
                                   String                     className,
                                   String                     actionDescription);  PropertyServerException(ExceptionMessageDefinition messageDefinition,
                                   String                     className,
                                   String                     actionDescription,
                                   Map<String, Object>        relatedProperties);  PropertyServerException(ExceptionMessageDefinition messageDefinition,
                                   String                     className,
                                   String                     actionDescription,
                                   Throwable                  caughtError);  PropertyServerException(ExceptionMessageDefinition messageDefinition,
                                   String                     className,
                                   String                     actionDescription,
                                   Throwable                  caughtError,
                                   Map<String, Object>        relatedProperties);  PropertyServerException(int                 httpCode,
                                   String              className,
                                   String              actionDescription,
                                   String              errorMessage,
                                   String              errorMessageId,
                                   String[]            errorMessageParameters,
                                   String              systemAction,
                                   String              userAction,
                                   String              caughtErrorClassName,
                                   Map<String, Object> relatedProperties); @Deprecated  PropertyServerException(int    httpCode,
                                   String className,
                                   String actionDescription,
                                   String errorMessage,
                                   String systemAction,
                                   String userAction); @Deprecated  PropertyServerException(int                 httpCode,
                                   String              className,
                                   String              actionDescription,
                                   String              errorMessage,
                                   String              systemAction,
                                   String              userAction,
                                   Map<String, Object> relatedProperties); @Deprecated  PropertyServerException(int       httpCode,
                                   String    className,
                                   String    actionDescription,
                                   String    errorMessage,
                                   String    systemAction,
                                   String    userAction,
                                   Throwable caughtError); @Deprecated  PropertyServerException(int                 httpCode,
                                   String              className,
                                   String              actionDescription,
                                   String              errorMessage,
                                   String              systemAction,
                                   String              userAction,
                                   Throwable           caughtError,
                                   Map<String, Object> relatedProperties);  PropertyServerException(OCFCheckedExceptionBase template); @Override String toString(); }
PropertyServerException extends OCFCheckedExceptionBase { @Override public String toString() { return "PropertyServerException{" + "reportedHTTPCode=" + getReportedHTTPCode() + ", reportingClassName='" + getReportingClassName() + '\'' + ", reportingActionDescription='" + getReportingActionDescription() + '\'' + ", reportedErrorMessage='" + getReportedErrorMessage() + '\'' + ", reportedErrorMessageId='" + getReportedErrorMessageId() + '\'' + ", reportedErrorMessageParameters=" + Arrays.toString(getReportedErrorMessageParameters()) + ", reportedSystemAction='" + getReportedSystemAction() + '\'' + ", reportedUserAction='" + getReportedUserAction() + '\'' + ", reportedCaughtException=" + getReportedCaughtException() + ", reportedCaughtExceptionClassName='" + getReportedCaughtExceptionClassName() + '\'' + ", relatedProperties=" + getRelatedProperties() + '}'; } PropertyServerException(ExceptionMessageDefinition messageDefinition,
                                   String                     className,
                                   String                     actionDescription);  PropertyServerException(ExceptionMessageDefinition messageDefinition,
                                   String                     className,
                                   String                     actionDescription,
                                   Map<String, Object>        relatedProperties);  PropertyServerException(ExceptionMessageDefinition messageDefinition,
                                   String                     className,
                                   String                     actionDescription,
                                   Throwable                  caughtError);  PropertyServerException(ExceptionMessageDefinition messageDefinition,
                                   String                     className,
                                   String                     actionDescription,
                                   Throwable                  caughtError,
                                   Map<String, Object>        relatedProperties);  PropertyServerException(int                 httpCode,
                                   String              className,
                                   String              actionDescription,
                                   String              errorMessage,
                                   String              errorMessageId,
                                   String[]            errorMessageParameters,
                                   String              systemAction,
                                   String              userAction,
                                   String              caughtErrorClassName,
                                   Map<String, Object> relatedProperties); @Deprecated  PropertyServerException(int    httpCode,
                                   String className,
                                   String actionDescription,
                                   String errorMessage,
                                   String systemAction,
                                   String userAction); @Deprecated  PropertyServerException(int                 httpCode,
                                   String              className,
                                   String              actionDescription,
                                   String              errorMessage,
                                   String              systemAction,
                                   String              userAction,
                                   Map<String, Object> relatedProperties); @Deprecated  PropertyServerException(int       httpCode,
                                   String    className,
                                   String    actionDescription,
                                   String    errorMessage,
                                   String    systemAction,
                                   String    userAction,
                                   Throwable caughtError); @Deprecated  PropertyServerException(int                 httpCode,
                                   String              className,
                                   String              actionDescription,
                                   String              errorMessage,
                                   String              systemAction,
                                   String              userAction,
                                   Throwable           caughtError,
                                   Map<String, Object> relatedProperties);  PropertyServerException(OCFCheckedExceptionBase template); @Override String toString();  }