HelloToGithub commented on issue #11703:
URL: https://github.com/apache/dubbo/issues/11703#issuecomment-1453769548

   package vip.joinsun.exception;
   
   import java.security.PrivilegedActionException;
   
   /**
   * 服务端异常
   */
   public class ServiceException extends RuntimeException {
   private static final long serialVersionUID = -1891675201830469702L;
   
   /**
   * Constructs a new exception with ***@***.*** null} as its detail message.
   * The cause is not initialized, and may subsequently be initialized by a
   * call to ***@***.*** #initCause}.
   */
   public ServiceException() {
   super();
   }
   
   /**
   * Constructs a new exception with the specified detail message. The
   * cause is not initialized, and may subsequently be initialized by
   * a call to ***@***.*** #initCause}.
   *
   * @param message the detail message. The detail message is saved for
   * later retrieval by the ***@***.*** #getMessage()} method.
   */
   public ServiceException(String message) {
   super(message);
   }
   
   /**
   * Constructs a new exception with the specified detail message and
   * cause. <p>Note that the detail message associated with
   * ***@***.*** cause} is <i>not</i> automatically incorporated in
   * this exception's detail message.
   *
   * @param message the detail message (which is saved for later retrieval
   * by the ***@***.*** #getMessage()} method).
   * @param cause the cause (which is saved for later retrieval by the
   * ***@***.*** #getCause()} method). (A <tt>null</tt> value is
   * permitted, and indicates that the cause is nonexistent or
   * unknown.)
   * @since 1.4
   */
   public ServiceException(String message, Throwable cause) {
   super(message, cause);
   }
   
   /**
   * Constructs a new exception with the specified cause and a detail
   * message of <tt>(cause==null ? null : cause.toString())</tt> (which
   * typically contains the class and detail message of <tt>cause</tt>).
   * This constructor is useful for exceptions that are little more than
   * wrappers for other throwables (for example, ***@***.***
   * PrivilegedActionException}).
   *
   * @param cause the cause (which is saved for later retrieval by the
   * ***@***.*** #getCause()} method). (A <tt>null</tt> value is
   * permitted, and indicates that the cause is nonexistent or
   * unknown.)
   * @since 1.4
   */
   public ServiceException(Throwable cause) {
   super(cause);
   }
   
   /**
   * Constructs a new exception with the specified detail message,
   * cause, suppression enabled or disabled, and writable stack
   * trace enabled or disabled.
   *
   * @param message the detail message.
   * @param cause the cause. (A ***@***.*** null} value is permitted,
   * and indicates that the cause is nonexistent or unknown.)
   * @param enableSuppression whether or not suppression is enabled
   * or disabled
   * @param writableStackTrace whether or not the stack trace should
   * be writable
   * @since 1.7
   */
   protected ServiceException(String message, Throwable cause, boolean 
enableSuppression, boolean writableStackTrace) {
   super(message, cause, enableSuppression, writableStackTrace);
   }
   }
   
   
   
   在 2023-03-03 21:37:51,"Albumen Kevin" ***@***.***> 写道:
   
   可以把 ServiceException 的定义发一下嘛
   
   —
   Reply to this email directly, view it on GitHub, or unsubscribe.
   You are receiving this because you authored the thread.Message ID: 
***@***.***>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to