gov.nasa.arc.brahms.vm.api.exceptions
Class MessageFormatException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by gov.nasa.arc.brahms.common.exceptions.BrahmsException
              extended by gov.nasa.arc.brahms.vm.api.exceptions.VMException
                  extended by gov.nasa.arc.brahms.vm.api.exceptions.EventNotifierException
                      extended by gov.nasa.arc.brahms.vm.api.exceptions.MessageFormatException
All Implemented Interfaces:
java.io.Serializable

public class MessageFormatException
extends EventNotifierException

This exception must be thrown when an EventNotifier client attempts to use a data type not supported by an event message or attempts to read data in a message as the wrong type. Note that the special case of a failure caused by attempting to read improperly formatted String data as numeric values should throw the java.lang.NumberFormatException.

Version:
12 September 2000
Author:
Ron van Hoof
See Also:
Serialized Form

Constructor Summary
MessageFormatException()
          Constructor, creates a new MessageFormatException with no detail message
MessageFormatException(java.lang.String message)
          Construct a MessageFormatException with reason.
MessageFormatException(java.lang.String message, java.lang.Throwable t)
          Constructor, creates a new MessageFormatException with the given detail message wrapping the given exception
MessageFormatException(java.lang.Throwable t)
          Constructor, creates a new MessageFormatException with the given linked exception
 
Method Summary
 
Methods inherited from class gov.nasa.arc.brahms.common.exceptions.BrahmsException
getLinkedException, printStackTrace, printStackTrace, printStackTrace, setLinkedException
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MessageFormatException

public MessageFormatException()
Constructor, creates a new MessageFormatException with no detail message


MessageFormatException

public MessageFormatException(java.lang.String message)
Construct a MessageFormatException with reason.

Parameters:
message - a description of the exception

MessageFormatException

public MessageFormatException(java.lang.Throwable t)
Constructor, creates a new MessageFormatException with the given linked exception

Parameters:
t - the Throwable to be linked to this exception

MessageFormatException

public MessageFormatException(java.lang.String message,
                              java.lang.Throwable t)
Constructor, creates a new MessageFormatException with the given detail message wrapping the given exception

Parameters:
message - the detail message
t - the Throwable to be linked to this exception


Copyright © 1997-2012 All Rights Reserved.