com.sap.conn.jco
Class ConversionException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.sap.conn.jco.JCoRuntimeException
                  extended by com.sap.conn.jco.ConversionException
All Implemented Interfaces:
Serializable

public class ConversionException
extends JCoRuntimeException

A ConversionException will be thrown, if a field in a JCoRecord cannot store a value passed to this record by a setValue call. One possible reason is trying to store some arbitrary text in a date field, or trying to put non-digits into an int field.

See Also:
Serialized Form

Constructor Summary
ConversionException(String message)
          Creates a ConversationException with the specified message.
ConversionException(String message, Throwable causedBy)
          Creates a ConversationException with the specified message and the causing throwable.
 
Method Summary
 
Methods inherited from class com.sap.conn.jco.JCoRuntimeException
getGroup, getKey, toString
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, 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

ConversionException

public ConversionException(String message)
Creates a ConversationException with the specified message.

Parameters:
message - the message describing the exception

ConversionException

public ConversionException(String message,
                           Throwable causedBy)
Creates a ConversationException with the specified message and the causing throwable.

Parameters:
message - the message describing the exception
causedBy - The throwable that caused the ConversionException


Copyright © 2014 SAP. All Rights Reserved.