github.com/searKing/golang/go@v1.2.74/error/exception/unsupported_operation_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 UnsupportedOperationException struct {
     8  	*RuntimeException
     9  }
    10  
    11  func NewUnsupportedOperationException() *UnsupportedOperationException {
    12  	return &UnsupportedOperationException{
    13  		RuntimeException: NewRuntimeException(),
    14  	}
    15  }
    16  
    17  func NewUnsupportedOperationException1(message string) *UnsupportedOperationException {
    18  	return &UnsupportedOperationException{
    19  		RuntimeException: NewRuntimeException1(message),
    20  	}
    21  }
    22  
    23  func NewUnsupportedOperationException2(message string, cause Throwable) *UnsupportedOperationException {
    24  	return &UnsupportedOperationException{
    25  		RuntimeException: NewRuntimeException2(message, cause),
    26  	}
    27  }