github.com/searKing/golang/go@v1.2.74/error/exception/null_pointer_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 NullPointerException struct {
     8  	*Exception
     9  }
    10  
    11  func NewNullPointerException() Throwable {
    12  	return &NullPointerException{
    13  		Exception: NewException(),
    14  	}
    15  }
    16  
    17  func NewNullPointerException1(message string) Throwable {
    18  	return &NullPointerException{
    19  		Exception: NewException1(message),
    20  	}
    21  }