Gets a fault message, if a fault exists.

@return the fault message
197998
public String getFaultMessage() {
        String fmsg = null;
        Object fault = getFault();
        if (fault != null) {
            if (fault instanceof Throwable) {
                fmsg = String.format(CommonKnowledgeMessages.MESSAGES.faultEncountered() + " [%s(message=%s)]: %s", fault.getClass().getName(), ((Throwable)fault).getMessage(),
                                     fault);
            } else {
                fmsg = String.format(CommonKnowledgeMessages.MESSAGES.faultEncountered() + " [%s]: %s", fault.getClass().getName(), fault);
            }
        }
        return fmsg;
    }
298272
public java.util.List<String> getMessages() {
        if (messages == null) {
            messages = new com.amazonaws.internal.SdkInternalList<String>();
        }
        return messages;
    }
656119
public AisMessage getMessage() {
		AisMessage m = aisParser.parse(aisMessage, nmea.getSource(), padBits);
		return m;
	}
919096
public Message receiveMessage()
    {
        while ((m_stack != null) && (m_stack.isEmpty()))
        {
            m_thread = Thread.currentThread();
            synchronized(m_thread)
            {
                m_bWaiting = true;
                if (m_stack.isEmpty())      // In case a message was added outside the sync block.
                {
                    try {
                        m_thread.wait();
                    } catch (InterruptedException ex)   {
                        m_stack = null; // This causes a null message to return, which tells the receiving loop to stop (halting this thread).
                        m_thread = null;    // Don't free this twice.
                    }
                }
                m_bWaiting = false;     // Notified
            }
        }
        Message message = null;
        if (m_stack != null)
            if (!m_stack.isEmpty())
                message = m_stack.remove(0);
        return message;
    }
335357
public String getFailReason() {
        String causeMsg = "";
        try {
            JSONObject postObj = getObject();
            if (postObj != null
                    && postObj.has("error")
                    && postObj.getJSONObject("error").has("message")) {
                causeMsg = postObj.getJSONObject("error").getString("message");
                if (causeMsg != null && causeMsg.trim().length() > 0) {
                    causeMsg = causeMsg + ".";
                }
            }
        } catch (Exception ignore) {
        }
        return causeMsg;
    }
59684
@Override
    public String getMessage() {
        // In case the immediate child has the same msgCode, it must be
        // duplicated
        if (childException != null) {
            if (msgKey.equals(childException.getMsgKey())) {
                return childException.getMessage();
            }
        }
        if (message == null && msgKey != null) {
            message = Tr.formatMessage(tc, msgKey, objs);
        }
        if (message != null) {
            return message;
        } else {
            return this.getClass().getName();
        }
    }
917933
public Error getError() {
		if(isOk())
			return error;
		
		try {
			JAXBContext context = JAXBContext.newInstance(Error.class);
			Unmarshaller unmarshaller = context.createUnmarshaller();
			
			StringReader xml = new StringReader(content);
			if(!content.isEmpty())
				error = (Error)unmarshaller.unmarshal(new StreamSource(xml));
		}
		catch(JAXBException e) {
			e.printStackTrace();
		}
		
		return error;
	}
401121
private String getMessage(Throwable t) {

        if ((t instanceof I_CmsThrowable) && (((I_CmsThrowable)t).getMessageContainer() != null)) {
            StringBuffer result = new StringBuffer(256);
            if (t instanceof CmsMultiException) {
                CmsMultiException exc = (CmsMultiException)t;
                String message = exc.getMessage(getLocale());
                if (CmsStringUtil.isNotEmpty(message)) {
                    result.append(message);
                    result.append("<br />");
                }

            }

            I_CmsThrowable cmsThrowable = (I_CmsThrowable)t;
            result.append(cmsThrowable.getLocalizedMessage(getLocale()));
            return result.toString();
        } else {
            String message = t.getMessage();
            if (CmsStringUtil.isEmptyOrWhitespaceOnly(message)) {
                // no error message found (e.g. for NPE), provide default message text
                message = CmsVaadinUtils.getMessageText(Messages.GUI_ERROR_UNKNOWN_0);
            }
            return message;
        }
    }
879619
public Message receiveMessage()
    {
        DualMessageQueue baseMessageQueue = (DualMessageQueue)this.getMessageQueue();
        if (baseMessageQueue == null)
            return null;    // In free
        return baseMessageQueue.getMessageStack().receiveMessage();
    }
1207206
public String getMessage() 
   {
      String msg = super.getMessage();
      String ec = getErrorCode();
      if ((msg == null) && (ec == null)) 
      {
         return null;
      }
      if ((msg != null) && (ec != null)) 
      {
         return (msg + ", error code: " + ec);
      }
      return ((msg != null) ? msg : ("error code: " + ec));
   }
1320450
@Nonnull
  @Nonempty
  @OverrideOnDemand
  protected String getLogMessage (@Nullable final Throwable t)
  {
    if (t == null)
      return "An error occurred";
    return "An exception was thrown";
  }
387668
@Override
    public String getMessage() {
        String message = super.getMessage();
        if (mType != null) {
            message = mType.getName() + ": " + message;
        }
        return message;
    }
145037
public List getErrorMessages() {
	             List messages = new ArrayList();
	         for ( Iterator errorIter = errors.iterator() ; errorIter.hasNext() ; ) {
	                      messages.add( createErrorMessage( (RecognitionException) errorIter.next() ) );
	                  }
	                  return messages;
	         }
1066412
public Reliability getExceptionDiscardReliability()
  {    
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.entry(tc, "getExceptionDiscardReliability"); 
    
    Reliability exDiscardRel = definition.getExceptionDiscardReliability();

    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.exit(tc, "getExceptionDiscardReliability", exDiscardRel); 
    
    return exDiscardRel;
  }
1174846
private String getMessage(Object error) {
        if (error instanceof Throwable) {
            String message = ((Throwable) error).getMessage();

            if (message == null) {
                if (fullStack) {
                    message = error.getClass().getName();
                }
            }

            return message;
        } else if (error instanceof String) {
            return (String) error;
        } else if (error instanceof Integer) {
            return HttpResponseStatus.valueOf((Integer) error).reasonPhrase();
        } else if (error instanceof JsonObject) {
            return ((JsonObject) error).getString("message");
        } else if (error instanceof Map) {
            return (String) ((Map) error).get("message");
        } else {
            return error.toString();
        }
    }
1023339
public final StringSubject hasMessageThat() {
    StandardSubjectBuilder check = check("getMessage()");
    if (actual() instanceof ErrorWithFacts && ((ErrorWithFacts) actual()).facts().size() > 1) {
      check =
          check.withMessage(
              "(Note from Truth: When possible, instead of asserting on the full message, assert"
                  + " about individual facts by using ExpectFailure.assertThat.)");
    }
    return check.that(actual().getMessage());
  }
344141
public String getValidationDescription() {
		final JvmOperation feature = getOperation();
		String message = null;
		if (!getDeclaredTypeParameters().isEmpty()) {
			message = MessageFormat.format(Messages.CastOperatorLinkingCandidate_0,
					getFeatureTypeParametersAsString(true),
					feature.getSimpleName(),
					getFeatureParameterTypesAsString(),
					feature.getDeclaringType().getSimpleName());
		} else {
			message = MessageFormat.format(Messages.CastOperatorLinkingCandidate_1,
					feature.getSimpleName(),
					getFeatureParameterTypesAsString(),
					feature.getDeclaringType().getSimpleName());
		}
		return message;
	}