Class CException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- net.morimekta.providence.reflect.contained.CException
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<CException>
,PMessage<CException>
,PMessageOrBuilder<CException>
,PValue<CException>
,CMessage<CException>
,net.morimekta.util.Stringable
public class CException extends java.lang.Exception implements CMessage<CException>
- Since:
- 07.09.15
- Author:
- Stein Eldar Johnsen
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CException.Builder
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CExceptionDescriptor
descriptor()
boolean
equals(java.lang.Object o)
int
hashCode()
PMessageBuilder<CException>
mutate()
Get a builder that extends the current object.java.lang.String
toString()
java.util.Map<java.lang.Integer,java.lang.Object>
values()
Method to access all values in the message.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.morimekta.providence.reflect.contained.CMessage
asString, compareTo, get, has
-
Methods inherited from interface net.morimekta.providence.PMessageOrBuilder
toBuilder, toMessage
-
-
-
-
Method Detail
-
values
public java.util.Map<java.lang.Integer,java.lang.Object> values()
Description copied from interface:CMessage
Method to access all values in the message.- Specified by:
values
in interfaceCMessage<CException>
- Returns:
- The values map.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Throwable
-
mutate
@Nonnull public PMessageBuilder<CException> mutate()
Description copied from interface:PMessage
Get a builder that extends the current object.- Specified by:
mutate
in interfacePMessage<CException>
- Returns:
- The builder instance.
-
descriptor
@Nonnull public CExceptionDescriptor descriptor()
- Specified by:
descriptor
in interfacePMessageOrBuilder<CException>
- Specified by:
descriptor
in interfacePValue<CException>
-
-