public interface AttributeReadMessageCode
code
of an object.Modifier and Type | Method and Description |
---|---|
String |
getCode()
This method gets the code that identifies the detailed type of this object.
|
String getCode()
UUID
or ID
are typically unique per instance of
an object the code is unique for all instances of the exact same kind. So e.g. a particular kind of
exception
or ValidationFailure
can be identified by its
code. A simple generic implementation may return the classname or the key of the NLS message. However, the code
should remain stable after refactoring (so at least after the rename the previous code should be returned as
String
literal). This code may be used as a compact identifier to reference the related problem or
information as well as for automatic tests of error situations that should remain stable even if the message text
gets improved or the locale is unknown.Throwable.getMessage()
,
NlsThrowable
,
Message
Copyright © 2001–2016 mmm-Team. All rights reserved.