edu.mayo.informatics.lexgrid.convert.validator.error
Class WrappingLoadValidationError

java.lang.Object
  extended by edu.mayo.informatics.lexgrid.convert.validator.error.WrappingLoadValidationError
All Implemented Interfaces:
LoadValidationError, ResolvedLoadValidationError, DatabaseError

public class WrappingLoadValidationError
extends java.lang.Object
implements ResolvedLoadValidationError

The Class WrappingdLoadValidationError.

Author:
Kevin Peterson

Nested Class Summary
 
Nested classes/interfaces inherited from interface edu.mayo.informatics.lexgrid.convert.validator.error.LoadValidationError
LoadValidationError.Severity
 
Field Summary
 
Fields inherited from interface org.lexevs.dao.database.service.error.DatabaseError
UNKNOWN_ERROR_CODE
 
Constructor Summary
WrappingLoadValidationError(DatabaseError error)
           
WrappingLoadValidationError(LoadValidationError error)
          Instantiates a new wrappingd load validation error.
WrappingLoadValidationError(LoadValidationError error, ErrorResolutionReport report)
          Instantiates a new wrappingd load validation error.
 
Method Summary
protected  ErrorResolutionReport buildDefaultUnresolvedReport()
          Builds the default unresolved report.
 java.lang.String getErrorCode()
          Gets the error code.
 java.lang.String getErrorDescription()
           
 java.lang.Exception getErrorException()
          Gets the error exception.
 java.lang.String getErrorMessage()
           
 java.lang.Object getErrorObject()
          Gets the error object.
 ErrorResolutionReport getErrorResolutionReport()
          Gets the error resolution report.
 java.util.Date getErrorTime()
          Gets the error time.
 LoadValidationError.Severity getSeverity()
          Gets the severity.
 java.lang.String getUniqueErrorId()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WrappingLoadValidationError

public WrappingLoadValidationError(LoadValidationError error,
                                   ErrorResolutionReport report)
Instantiates a new wrappingd load validation error.

Parameters:
error - the error
report - the report

WrappingLoadValidationError

public WrappingLoadValidationError(DatabaseError error)

WrappingLoadValidationError

public WrappingLoadValidationError(LoadValidationError error)
Instantiates a new wrappingd load validation error.

Parameters:
error - the error
Method Detail

buildDefaultUnresolvedReport

protected ErrorResolutionReport buildDefaultUnresolvedReport()
Builds the default unresolved report.

Returns:
the error resolution report

getErrorResolutionReport

public ErrorResolutionReport getErrorResolutionReport()
Description copied from interface: ResolvedLoadValidationError
Gets the error resolution report.

Specified by:
getErrorResolutionReport in interface ResolvedLoadValidationError
Returns:
the error resolution report

getErrorCode

public java.lang.String getErrorCode()
Description copied from interface: DatabaseError
Gets the error code.

Specified by:
getErrorCode in interface DatabaseError
Returns:
the error code

getErrorDescription

public java.lang.String getErrorDescription()
Specified by:
getErrorDescription in interface DatabaseError

getErrorMessage

public java.lang.String getErrorMessage()
Specified by:
getErrorMessage in interface DatabaseError

getErrorObject

public java.lang.Object getErrorObject()
Description copied from interface: DatabaseError
Gets the error object.

Specified by:
getErrorObject in interface DatabaseError
Returns:
the error object

getSeverity

public LoadValidationError.Severity getSeverity()
Description copied from interface: LoadValidationError
Gets the severity.

Specified by:
getSeverity in interface LoadValidationError
Returns:
the severity

getUniqueErrorId

public java.lang.String getUniqueErrorId()
Specified by:
getUniqueErrorId in interface DatabaseError

getErrorException

public java.lang.Exception getErrorException()
Description copied from interface: DatabaseError
Gets the error exception.

Specified by:
getErrorException in interface DatabaseError
Returns:
the error exception

getErrorTime

public java.util.Date getErrorTime()
Description copied from interface: DatabaseError
Gets the error time.

Specified by:
getErrorTime in interface DatabaseError
Returns:
the error time

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

Copyright: (c) 2004-2006 Mayo Foundation for Medical Education and Research (MFMER). All rights reserved. MAYO, MAYO CLINIC, and the triple-shield Mayo logo are trademarks and service marks of MFMER.