Skip to content

Commit

Permalink
[Query] Introduce class NoAnswer
Browse files Browse the repository at this point in the history
  • Loading branch information
shingarov committed Nov 12, 2024
1 parent 0fc6d16 commit 1ee135a
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions src/PreSmalltalks/NoAnswer.class.st
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
Class {
#name : #NoAnswer,
#superclass : #Error,
#instVars : [
'query'
],
#category : #PreSmalltalks
}

{ #category : #signalling }
NoAnswer class >> signalFor: aQuery [
^self new
query: aQuery;
signal

]

{ #category : #accessing }
NoAnswer >> messageText [
^'No suitable default answer!'
]

{ #category : #accessing }
NoAnswer >> query [
^ query
]

{ #category : #accessing }
NoAnswer >> query: anObject [
query := anObject
]

0 comments on commit 1ee135a

Please sign in to comment.