HiRISE

HiRISE.HiPlan.PTF
Class PTF_Record_List.Import_Exception

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by HiRISE.HiPlan.PTF.PTF_Record_List.Import_Exception
All Implemented Interfaces:
Serializable
Enclosing class:
PTF_Record_List

public static class PTF_Record_List.Import_Exception
extends Exception

An exception for reporting problems during PTF record imports. The class includes a problem field that records the nature of the problem; this field might be used for managing different kinds of import errors.

Version:
1.18
Author:
Christian Schaller - UA/PIRL
See Also:
Serialized Form

Field Summary
static String UNKNOWN
          A string that indicates the problem is unknown.
 
Constructor Summary
PTF_Record_List.Import_Exception()
          Creates a new record import exception with null as its detail message.
PTF_Record_List.Import_Exception(String message, String problem)
          Creates a new record import exception with the indicated detail message and import problem.
PTF_Record_List.Import_Exception(String message, String problem, Throwable cause)
          Creates a new record import exception with the indicated detail message, import problem, and cause.
PTF_Record_List.Import_Exception(Throwable cause)
          Creates a new record import exception with the indicated cause.
 
Method Summary
 String problem()
          Gets the exception's problem.
 void problem(String problem)
          Sets the exception's problem.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, 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

UNKNOWN

public static final String UNKNOWN
A string that indicates the problem is unknown.

See Also:
Constant Field Values
Constructor Detail

PTF_Record_List.Import_Exception

public PTF_Record_List.Import_Exception()
Creates a new record import exception with null as its detail message. The cause is not initialized; it may subsequently be initialized via the Throwable.initCause(java.lang.Throwable) method. The exception's problem is set to UNKNOWN.


PTF_Record_List.Import_Exception

public PTF_Record_List.Import_Exception(String message,
                                        String problem)
Creates a new record import exception with the indicated detail message and import problem. The cause is not initialized; it may subsequently be initialized via the Throwable.initCause(java.lang.Throwable) method. If problem is null, the exception's problem is set to UNKNOWN.

Parameters:
message - the detail message.
problem - the import problem.

PTF_Record_List.Import_Exception

public PTF_Record_List.Import_Exception(String message,
                                        String problem,
                                        Throwable cause)
Creates a new record import exception with the indicated detail message, import problem, and cause. The detail message of cause is not automatically incorporatead into this exception's detail message.

Parameters:
message - the detail messsage.
problem - the import problem.
cause - the cause, which may be null.

PTF_Record_List.Import_Exception

public PTF_Record_List.Import_Exception(Throwable cause)
Creates a new record import exception with the indicated cause. The detail message is set to that of cause if cause is not null, or null if it is.

Parameters:
cause - the cause, which may be null.
Method Detail

problem

public String problem()
Gets the exception's problem.

Returns:
the current problem, which is never null.

problem

public void problem(String problem)
Sets the exception's problem. If problem is null, the problem will be set to UNKNOWN.

Parameters:
problem - the new exception problem.

HiRISE

Copyright (C) Arizona Board of Regents on behalf of the Planetary Image Research Laboratory, Lunar and Planetary Laboratory at the University of Arizona