Class PExceptionDescriptor<Exception extends PMessage<Exception>>
- java.lang.Object
-
- net.morimekta.providence.descriptor.PDeclaredDescriptor<T>
-
- net.morimekta.providence.descriptor.PMessageDescriptor<Exception>
-
- net.morimekta.providence.descriptor.PExceptionDescriptor<Exception>
-
- All Implemented Interfaces:
PDescriptor
public abstract class PExceptionDescriptor<Exception extends PMessage<Exception>> extends PMessageDescriptor<Exception>
The definition of a thrift exception.
-
-
Constructor Summary
Constructors Constructor Description PExceptionDescriptor(java.lang.String packageName, java.lang.String name, java.util.function.Supplier<PMessageBuilder<Exception>> builderSupplier, boolean simple)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PMessageVariantgetVariant()-
Methods inherited from class net.morimekta.providence.descriptor.PMessageDescriptor
builder, equals, fieldForId, fieldForName, findFieldById, findFieldByName, getBuilderSupplier, getFields, getImplementing, getType, hashCode, isSimple
-
Methods inherited from class net.morimekta.providence.descriptor.PDeclaredDescriptor
getDefaultValue, getName, getProgramName, getQualifiedName, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.morimekta.providence.descriptor.PDescriptor
getQualifiedName
-
-
-
-
Constructor Detail
-
PExceptionDescriptor
public PExceptionDescriptor(java.lang.String packageName, java.lang.String name, java.util.function.Supplier<PMessageBuilder<Exception>> builderSupplier, boolean simple)
-
-
Method Detail
-
getVariant
@Nonnull public PMessageVariant getVariant()
- Specified by:
getVariantin classPMessageDescriptor<Exception extends PMessage<Exception>>- Returns:
- The struct variant.
-
-