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>
,net.morimekta.providence.PMessage<CException>
,net.morimekta.providence.PMessageOrBuilder<CException>
,net.morimekta.providence.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()
net.morimekta.providence.PMessageBuilder<CException>
mutate()
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
-
-
-
-
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 net.morimekta.providence.PMessageBuilder<CException> mutate()
- Specified by:
mutate
in interfacenet.morimekta.providence.PMessage<CException>
-
descriptor
@Nonnull public CExceptionDescriptor descriptor()
- Specified by:
descriptor
in interfacenet.morimekta.providence.PMessageOrBuilder<CException>
- Specified by:
descriptor
in interfacenet.morimekta.providence.PValue<CException>
-
-