Top Description Fields Constructors Methods
org.springframework.web.util

public Class NestedServletException

extends ServletException
Class Inheritance
Annotations
@Deprecated
since:6.0
Imports
jakarta.servlet.ServletException, org.springframework.core.NestedExceptionUtils, org.springframework.lang.Nullable

Deprecated

since 6.0.

as of 6.0, in favor of standard ServletException nesting

Legacy subclass of ServletException that handles a root cause in terms of message and stacktrace.
Author
Juergen Hoeller
Since
1.2.5

Field Summary

Modifier and TypeField and Description
private static final long
serialVersionUID

Hides jakarta.servlet.ServletException.serialVersionUID.

Use serialVersionUID from Spring 1.2 for interoperability.

Constructor Summary

AccessConstructor and Description
public
NestedServletException(String
the detail message
msg
)

Construct a NestedServletException with the specified detail message.

public
NestedServletException(String
the detail message
msg
,
Throwable
the nested exception
cause
)

Construct a NestedServletException with the specified detail message and nested exception.

Method Summary

Inherited from jakarta.servlet.ServletException:
getRootCause

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides jakarta.servlet.ServletException.serialVersionUID.

Use serialVersionUID from Spring 1.2 for interoperability.

Constructor Detail

NestedServletExceptionback to summary
public NestedServletException(String msg)

Construct a NestedServletException with the specified detail message.

Parameters
msg:String

the detail message

NestedServletExceptionback to summary
public NestedServletException(String msg, Throwable cause)

Construct a NestedServletException with the specified detail message and nested exception.

Parameters
msg:String

the detail message

cause:Throwable

the nested exception