com.legstar.coxb.host
Class HostException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.legstar.coxb.host.HostException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ClassInvokeException, ClassLoadingException, ClassMethodException, CobolBindingException, CobolConversionException

public class HostException
extends Exception

Host exceptions trace java to host conversions issues.

Author:
Fady Moussallam
See Also:
Serialized Form

Constructor Summary
HostException(Exception e)
          Constructor from an inner exception.
HostException(String message)
          Contructor used when no host field exists.
HostException(String message, HostData hostField, int errorOffset)
          Contructor used when host field exist.
HostException(String message, HostData hostField, int errorOffset, int errorLength)
          Contructor used when host field exist and size is known.
 
Method Summary
 String getMessage()
           
 String toString()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HostException

public HostException(String message)
Contructor used when no host field exists.

Parameters:
message - text describing the issue

HostException

public HostException(String message,
                     HostData hostField,
                     int errorOffset)
Contructor used when host field exist.

Parameters:
message - text describing the issue
hostField - host field on which the error occured
errorOffset - position in host field where error occured

HostException

public HostException(String message,
                     HostData hostField,
                     int errorOffset,
                     int errorLength)
Contructor used when host field exist and size is known.

Parameters:
message - text describing the issue
hostField - host field on which the error occured
errorOffset - position in host data where faulty field starts
errorLength - length of faulty field

HostException

public HostException(Exception e)
Constructor from an inner exception.

Parameters:
e - the inner exception
Method Detail

getMessage

public String getMessage()
Overrides:
getMessage in class Throwable
Returns:
String describes the exception
See Also:
Throwable.getMessage()

toString

public String toString()
Overrides:
toString in class Throwable
Returns:
String describes the exception
See Also:
Object.toString()


Copyright © 2015 LegSem. All Rights Reserved.