Returns the detail message, including the message from the nested exception if there is one.
505751
@Override
  public String getMessage() {
    StringBuilder msg = new StringBuilder("\n");

    msg.append(super.getMessage());

    if (detail != null) {
      msg.append("\n");
      msg.append(detail.getMessage());
      if (detail.getCause() != null) {
        msg.append(detail.getCause().getMessage());
      }
    }
    return msg.toString();
  }
607316
@JsonIgnore
    public String getErrorMessage(){
        StringBuilder sb = new StringBuilder();
        sb.append(exceptionCode.getCode()).append(":").append(exceptionCode.getMessage());
        if(this.message != null && ! this.message.isEmpty()){
            sb.append(" - ").append(message);
        }
        return sb.toString();
    }
1018079
public void info(final Throwable exception, final String message) {
		if (minimumLevelCoversInfo) {
			provider.log(STACKTRACE_DEPTH, tag, Level.INFO, exception, message, (Object[]) null);
		}
	}
1008988
private Iterator detailChildrenIterator(Detail detail) {
        /*
        sb.append("<ns2:AccessDeniedWebServiceException xmlns:ns2=\"http://exceptionthrower.system.services.v4_0.soap.server.nameapi.org/\">");
        sb.append("<blame>CLIENT</blame>");
        sb.append("<errorCode>2101</errorCode>");
        sb.append("<faultCause>AccessDenied</faultCause>");
         */

        DetailEntry firstDetailEntry = getFirstDetailEntry(detail);
        if (firstDetailEntry!=null) {
            String localName = firstDetailEntry.getElementName().getLocalName();
            if (localName.endsWith("Exception")) {
                //got a subtag
                return firstDetailEntry.getChildElements();
            }
        }
        return detail.getDetailEntries();
    }
1317979
private JsMessage getJSMessage(boolean throwExceptionIfNotAvailable)
    {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.entry(this, tc, "getJSMessage", Boolean.valueOf(throwExceptionIfNotAvailable));

        JsMessage localMsg = msg;
        if (localMsg == null)
        {
            if (softReferenceMsg != null)
            {
                localMsg = softReferenceMsg.get(); //Get the referred object
            }

            if (localMsg == null)
            {
                synchronized (this)
                {
                    restoreJsMessageFromMsgstore(throwExceptionIfNotAvailable);
                    localMsg = msg;
                    // It is possible that restoreJsMessageFromMsgstore restored no message and didn't
                    // throw an exception. In this case don't create the SoftReference.
                    if (localMsg != null)
                    {
                        //Assign the msg to the soft reference, this is to ensure that we
                        // don't keep a hard reference to the msg in memory after we have restored 
                        softReferenceMsg = new SoftReference<JsMessage>(msg);
                        //Remove the hard reference.
                        msg = null;
                    }
                }
            }
        }

        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.exit(this, tc, "getJSMessage", localMsg);
        return localMsg;
    }
1141664
public static String getMessage( final Throwable    ex )
    {
        String      message = ex.getMessage();

        //
        //    It *appears* as though the SQLException hasn't been
        //    converted to nest?  It seems like it has it's own
        //    method of nesting, not sure why.  I don't know
        //    why Sun wouldn't have converted it.  Maybe they
        //    did, but just left these getNextException methods
        //    on for compatibility?   In my java source code, they
        //    aren't deprecated, though.
        //
        if ( ex instanceof SQLException )
        {
            String    sqlMessage = getSqlExceptionMessage( (SQLException) ex );
            if ( ! StringUtils.isBlank( sqlMessage ) )
            {
                if ( ! StringUtils.isBlank( message ) )
                {
                    message  += "\n" + sqlMessage;
                }
                else
                {
                    message = sqlMessage;
                }
            }
        }


        Throwable    cause = ex.getCause();

        if ( ex instanceof SamSixException
             && ((SamSixException) ex).isShowThisCauseOnly() )
        {
            return message;
        }

        if ( cause != null )
        {
            String causeMessage = ExceptionUtils.getMessage( cause );

            if ( ! StringUtils.isBlank( causeMessage ) )
            {
                if ( ! StringUtils.isBlank( message ) )
                {
                    //
                    //    ALWAYS use "broadest first" when showing error messages.
                    //    Otherwise, error messages end up with some non-human readable thing at the top,
                    //    confusing users with deeply technical details. This is especially important for user errors.
                    //
                    //    broadest/non-broadest should be used for stack traces only.
                    //

                    message = message + "\n" + causeMessage;
                }
                else
                {
                    message = causeMessage;
                }
            }
        }


        if ( ! StringUtils.isBlank( message ) )
        {
            return message;
        }

        return ex.getClass().getName() + ":  An error has been detected.";
    }
60283
public static String convertExceptionToMessage(Throwable ex)
  {
    StringBuilder sb = new StringBuilder();
    if(ex != null)
    {
      sb.append("Exception type: ").append(ex.getClass().getName()).append("\n");
      sb.append("Message: ").append(ex.getLocalizedMessage()).append("\n");
      sb.append("Stacktrace: \n");
      StackTraceElement[] st = ex.getStackTrace();
      for (int i = 0; i < st.length; i++)
      {
        sb.append(st[i].toString());
        sb.append("\n");
      }
    }
    return sb.toString();
  }
980831
public static String getExceptionMessage(Exception e) {
        if (e.getCause() != null && e.getCause().getMessage() != null) {
            String s = getscard(e.getCause().getMessage());
            if (s != null)
                return s;
        }
        if (e.getMessage() != null) {
            String s = getscard(e.getMessage());
            if (s != null)
                return s;
        }
        return e.getMessage();
    }
768303
@Override public String getMessage() {
    String errnoName = OsConstants.errnoName(errno);
    if (errnoName == null) {
      errnoName = "errno " + errno;
    }
    String description = Libcore.os.strerror(errno);
    return functionName + " failed: " + errnoName + " (" + description + ")";
  }
1262132
def get_details(self):
        

        if isinstance(self.validation_outcome, Exception):
            if isinstance(self.validation_outcome, Failure):
                # do not say again what was the value, it is already mentioned inside :)
                end_str = ''
            else:
                end_str = ' for value [{value}]'.format(value=self.wrong_value)

            contents = 'Function [{wrapped}] raised [{exception}: {details}]{end}.' \
                       ''.format(wrapped=get_callable_name(self.wrapped_func),
                                 exception=type(self.validation_outcome).__name__, details=self.validation_outcome,
                                 end=end_str)
        else:
            contents = 'Function [{wrapped}] returned [{result}] for value [{value}].' \
                       ''.format(wrapped=get_callable_name(self.wrapped_func), result=self.validation_outcome,
                                 value=self.wrong_value)

        return contents
258392
def get_message(self):
        """"""

        result = ''
        if self._data_struct is not None:
            result = self._data_struct[KEY_MESSAGE]
        return result
674956
function _detailedStringForDecryptionError(err, details) {
    let result = err.name + '[msg: ' + err.message;

    if (details) {
        result += ', ' +
            Object.keys(details).map(
                (k) => k + ': ' + details[k],
            ).join(', ');
    }

    result += ']';

    return result;
}
1249818
def make_exception_message(exc):
    
    if str(exc):
        return '%s: %s\n' % (exc.__class__.__name__, exc)
    else:
        return '%s\n' % (exc.__class__.__name__)
860619
private static String getUsefulMessage(Throwable throwable) {
        while(isBoring(throwable)) {
            throwable = throwable.getCause();
        }

        String message = throwable.getMessage();
        if (message == null) {
            message = throwable.getClass().getName();
        }
        return message;
    }
1032338
@Override
    public String getLocalizedMessage() {
        String localizedContext = getLocalizedString(context);
        if (value == null) {
            return getLocalizedMessage("pruefung.missingvalue.exception.message", localizedContext);
        }
        if (range == null) {
            return getLocalizedMessage("pruefung.invalidvalue.exception.message", value.toString(), localizedContext);
        }
        return getLocalizedMessage("pruefung.invalidrange.exception.message", value.toString(), localizedContext, range);
    }
353249
protected final Map<String, Object> getHttpDetails(final String message) {
    final Map<String, Object> map = new HashMap<String, Object>();
    map.put("error", message);
    map.put("datapoint", this);
    return map;
  }
518961
def get_error_details(self):
        # type: () -> Optional[Dict[str, Any]]
        

        details = {}  # type: Dict[str, Any]

        if ERROR.details:
            details = {"xerror_details": ERROR.details}
            ERROR.details = None
            xserver_error = ctypes.create_string_buffer(1024)
            self.xlib.XGetErrorText(
                MSS.display,
                details.get("xerror_details", {}).get("error_code", 0),
                xserver_error,
                len(xserver_error),
            )
            xerror = xserver_error.value.decode("utf-8")
            if xerror != "0":
                details["xerror"] = xerror

        return details