Package org.bremersee.exception.model
Class StackTraceItem
- java.lang.Object
-
- org.bremersee.exception.model.StackTraceItem
-
- All Implemented Interfaces:
Serializable
@Validated public class StackTraceItem extends Object implements Serializable
A stack trace element of an exception.- Author:
- Christian Bremer
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description StackTraceItem(String declaringClass, String methodName, String fileName, Integer lineNumber)
Instantiates a new stack trace item.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDeclaringClass()
The declaring class.String
getFileName()
The file name.Integer
getLineNumber()
The line number.String
getMethodName()
The method name.void
setDeclaringClass(String declaringClass)
Sets declaring class.void
setFileName(String fileName)
Sets file name.void
setLineNumber(Integer lineNumber)
Sets line number.void
setMethodName(String methodName)
Sets method name.
-
-
-
Method Detail
-
getDeclaringClass
public String getDeclaringClass()
The declaring class.- Returns:
- declaringClass declaring class
-
setDeclaringClass
public void setDeclaringClass(String declaringClass)
Sets declaring class.- Parameters:
declaringClass
- the declaring class
-
getMethodName
public String getMethodName()
The method name.- Returns:
- methodName method name
-
setMethodName
public void setMethodName(String methodName)
Sets method name.- Parameters:
methodName
- the method name
-
getFileName
public String getFileName()
The file name.- Returns:
- fileName file name
-
setFileName
public void setFileName(String fileName)
Sets file name.- Parameters:
fileName
- the file name
-
getLineNumber
public Integer getLineNumber()
The line number.- Returns:
- lineNumber line number
-
setLineNumber
public void setLineNumber(Integer lineNumber)
Sets line number.- Parameters:
lineNumber
- the line number
-
-