github.com/searKing/golang/go@v1.2.74/error/exception/illegal_argument_exception.go (about)

     1  // Copyright 2020 The searKing Author. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  package exception
     6  
     7  type IllegalArgumentException struct {
     8  	*RuntimeException
     9  }
    10  
    11  func NewIllegalArgumentException() *IllegalArgumentException {
    12  	return &IllegalArgumentException{
    13  		RuntimeException: NewRuntimeException(),
    14  	}
    15  }
    16  
    17  func NewIllegalArgumentException1(message string) *IllegalArgumentException {
    18  	return &IllegalArgumentException{
    19  		RuntimeException: NewRuntimeException1(message),
    20  	}
    21  }
    22  
    23  func NewIllegalArgumentException2(message string, cause Throwable) *IllegalArgumentException {
    24  	return &IllegalArgumentException{
    25  		RuntimeException: NewRuntimeException2(message, cause),
    26  	}
    27  }