SAP J2EE Engine

Version 6.40


com.sap.engine.services.servlets_jsp.lib.multipart
Class MultipartParseException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--com.sap.engine.services.servlets_jsp.lib.multipart.MultipartParseException
All Implemented Interfaces:
com.sap.exception.IBaseException, java.io.Serializable

public class MultipartParseException
extends java.lang.Exception
implements com.sap.exception.IBaseException

Throwing an instance of this exception indicates problems in parsing multipart http messages. The reason could be missing boundaries, headers, etc. in the multipart message or its submessages that impedes correct parsing the message.

Version:
6.30
See Also:
Serialized Form

Field Summary
static java.lang.String BOUNDARY_NOT_FOUND
          Incorrect Content-Type header.
static java.lang.String CONTENT_TYPE_HEADER_NOT_FOUND
          Content-Type header not found or has no value.
static java.lang.String FINAL_BOUNDARY_NOT_FOUND
          Final boundary not found.
static java.lang.String HEADER_VALUE_NOT_FOUND
          Incorrect request header: [{0}].
static java.lang.String NO_SUCH_MULTIPART_PART
          No such MultipartMessage part.
static java.lang.String START_BOUNDARY_NOT_FOUND
          Start boundary not found.
 
Fields inherited from interface com.sap.exception.IBaseException
audit, defaultLocale
 
Constructor Summary
MultipartParseException(java.lang.String msg)
          Creates an instance of this exception with a specified error message.
MultipartParseException(java.lang.String msg, java.lang.Object[] parameters)
          Creates an instance of this exception with a specified error message.
MultipartParseException(java.lang.String msg, java.lang.Object[] parameters, java.lang.Throwable linkedException)
          Creates an instance of this exception with a specified error message and linked exception.
MultipartParseException(java.lang.String msg, java.lang.Throwable linkedException)
          Creates an instance of this exception with a specified error message and linked exception.
 
Method Summary
 void finallyLocalize()
           
 void finallyLocalize(java.util.Locale loc)
           
 void finallyLocalize(java.util.Locale loc, java.util.TimeZone timeZone)
           
 void finallyLocalize(java.util.TimeZone timeZone)
           
 java.lang.Throwable getCause()
          Returns the cause of the error of this exception.
 com.sap.localization.LocalizableText getLocalizableMessage()
           
 java.lang.String getLocalizedMessage()
           
 java.lang.String getLocalizedMessage(java.util.Locale loc)
           
 java.lang.String getLocalizedMessage(java.util.Locale loc, java.util.TimeZone timeZone)
           
 java.lang.String getLocalizedMessage(java.util.TimeZone timeZone)
           
 java.lang.String getNestedLocalizedMessage()
           
 java.lang.String getNestedLocalizedMessage(java.util.Locale loc)
           
 java.lang.String getNestedLocalizedMessage(java.util.Locale loc, java.util.TimeZone timeZone)
           
 java.lang.String getNestedLocalizedMessage(java.util.TimeZone timeZone)
           
 java.lang.String getNestedStackTraceString()
           
 java.lang.String getStackTraceString()
           
 java.lang.String getSystemStackTraceString()
           
 java.lang.Throwable initCause(java.lang.Throwable cause)
           
 void log()
          Logs the exception message.
 void printStackTrace()
           
 void printStackTrace(java.io.PrintStream s)
           
 void printStackTrace(java.io.PrintWriter s)
           
 void setLogSettings(com.sap.tc.logging.Category cat, int severity, com.sap.tc.logging.Location loc)
          Setter method for logging information.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getMessage, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NO_SUCH_MULTIPART_PART

public static final java.lang.String NO_SUCH_MULTIPART_PART
No such MultipartMessage part.

CONTENT_TYPE_HEADER_NOT_FOUND

public static final java.lang.String CONTENT_TYPE_HEADER_NOT_FOUND
Content-Type header not found or has no value. Multipart body requires a Content-Type header.

BOUNDARY_NOT_FOUND

public static final java.lang.String BOUNDARY_NOT_FOUND
Incorrect Content-Type header. Parameter boundary not found.

START_BOUNDARY_NOT_FOUND

public static final java.lang.String START_BOUNDARY_NOT_FOUND
Start boundary not found.

HEADER_VALUE_NOT_FOUND

public static final java.lang.String HEADER_VALUE_NOT_FOUND
Incorrect request header: [{0}]. Header value not specified.

FINAL_BOUNDARY_NOT_FOUND

public static final java.lang.String FINAL_BOUNDARY_NOT_FOUND
Final boundary not found.
Constructor Detail

MultipartParseException

public MultipartParseException(java.lang.String msg)
Creates an instance of this exception with a specified error message.
Parameters:
msg - The message of the exception

MultipartParseException

public MultipartParseException(java.lang.String msg,
                               java.lang.Object[] parameters)
Creates an instance of this exception with a specified error message.
Parameters:
msg - The message of the exception
parameters - Exception message parameters that will be inserted into its message

MultipartParseException

public MultipartParseException(java.lang.String msg,
                               java.lang.Throwable linkedException)
Creates an instance of this exception with a specified error message and linked exception.
Parameters:
msg - The message of the exception
linkedException - The exception linked with this one

MultipartParseException

public MultipartParseException(java.lang.String msg,
                               java.lang.Object[] parameters,
                               java.lang.Throwable linkedException)
Creates an instance of this exception with a specified error message and linked exception.
Parameters:
msg - The message of the exception
parameters - Exception message parameters that will be inserted into its message
linkedException - The exception linked with this one
Method Detail

initCause

public java.lang.Throwable initCause(java.lang.Throwable cause)
Specified by:
initCause in interface com.sap.exception.IBaseException

getCause

public java.lang.Throwable getCause()
Returns the cause of the error of this exception.
Specified by:
getCause in interface com.sap.exception.IBaseException
Returns:
The cause exception

getLocalizableMessage

public com.sap.localization.LocalizableText getLocalizableMessage()
Specified by:
getLocalizableMessage in interface com.sap.exception.IBaseException

getLocalizedMessage

public java.lang.String getLocalizedMessage()
Specified by:
getLocalizedMessage in interface com.sap.exception.IBaseException
Overrides:
getLocalizedMessage in class java.lang.Throwable

getLocalizedMessage

public java.lang.String getLocalizedMessage(java.util.Locale loc)
Specified by:
getLocalizedMessage in interface com.sap.exception.IBaseException

getLocalizedMessage

public java.lang.String getLocalizedMessage(java.util.TimeZone timeZone)
Specified by:
getLocalizedMessage in interface com.sap.exception.IBaseException

getLocalizedMessage

public java.lang.String getLocalizedMessage(java.util.Locale loc,
                                            java.util.TimeZone timeZone)
Specified by:
getLocalizedMessage in interface com.sap.exception.IBaseException

getNestedLocalizedMessage

public java.lang.String getNestedLocalizedMessage()
Specified by:
getNestedLocalizedMessage in interface com.sap.exception.IBaseException

getNestedLocalizedMessage

public java.lang.String getNestedLocalizedMessage(java.util.Locale loc)
Specified by:
getNestedLocalizedMessage in interface com.sap.exception.IBaseException

getNestedLocalizedMessage

public java.lang.String getNestedLocalizedMessage(java.util.TimeZone timeZone)
Specified by:
getNestedLocalizedMessage in interface com.sap.exception.IBaseException

getNestedLocalizedMessage

public java.lang.String getNestedLocalizedMessage(java.util.Locale loc,
                                                  java.util.TimeZone timeZone)
Specified by:
getNestedLocalizedMessage in interface com.sap.exception.IBaseException

finallyLocalize

public void finallyLocalize()
Specified by:
finallyLocalize in interface com.sap.exception.IBaseException

finallyLocalize

public void finallyLocalize(java.util.Locale loc)
Specified by:
finallyLocalize in interface com.sap.exception.IBaseException

finallyLocalize

public void finallyLocalize(java.util.TimeZone timeZone)
Specified by:
finallyLocalize in interface com.sap.exception.IBaseException

finallyLocalize

public void finallyLocalize(java.util.Locale loc,
                            java.util.TimeZone timeZone)
Specified by:
finallyLocalize in interface com.sap.exception.IBaseException

getSystemStackTraceString

public java.lang.String getSystemStackTraceString()
Specified by:
getSystemStackTraceString in interface com.sap.exception.IBaseException

getStackTraceString

public java.lang.String getStackTraceString()
Specified by:
getStackTraceString in interface com.sap.exception.IBaseException

getNestedStackTraceString

public java.lang.String getNestedStackTraceString()
Specified by:
getNestedStackTraceString in interface com.sap.exception.IBaseException

printStackTrace

public void printStackTrace()
Specified by:
printStackTrace in interface com.sap.exception.IBaseException
Overrides:
printStackTrace in class java.lang.Throwable

printStackTrace

public void printStackTrace(java.io.PrintStream s)
Specified by:
printStackTrace in interface com.sap.exception.IBaseException
Overrides:
printStackTrace in class java.lang.Throwable

printStackTrace

public void printStackTrace(java.io.PrintWriter s)
Specified by:
printStackTrace in interface com.sap.exception.IBaseException
Overrides:
printStackTrace in class java.lang.Throwable

setLogSettings

public void setLogSettings(com.sap.tc.logging.Category cat,
                           int severity,
                           com.sap.tc.logging.Location loc)
Setter method for logging information.
Specified by:
setLogSettings in interface com.sap.exception.IBaseException
Parameters:
cat - logging category
severity - logging severity
loc - logging location

log

public void log()
Logs the exception message.
Specified by:
log in interface com.sap.exception.IBaseException

SAP J2EE Engine

Version 6.40


Copyright © 2001-2005 SAP AG. All Rights Reserved.